package com.mzj.saas.mservice.records.controller;

import com.mzj.saas.commons.ResultBean;
import com.mzj.saas.mservice.records.service.RecordsPCService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * PC端信息备案
 */
@Controller
@RequestMapping("/recordsPC")
public class RecordsPCController {
    @Autowired
    private RecordsPCService recordsPCService;

    /*
     *信息备案列表显示
     *type 0 待确认 1 已确认
     */
    @PostMapping(value = "recordsListShow")
    @ResponseBody
    public ResultBean<Object> recordsListShow(@RequestHeader String accessToken, @RequestParam(defaultValue = "0") Integer pageNumber, @RequestParam(defaultValue = "10") Integer pageSize, @RequestParam(name = "type", required = false) Integer type, @RequestParam(name = "name", required = false) String name) {
        return recordsPCService.recordsListShow(accessToken, pageNumber, pageSize, type, name);
    }
}
